#ifndef __SWEI_DOWNLINK_H
#define __SWEI_DOWNLINK_H

#include "task/service/include/swei_common.h"

#ifdef __cplusplus
extern "C" {
#endif






void swei_downlink_init(void);
void swei_downlink_process(void);
void swei_downlink_deinit(void);


typedef enum
{
    CMD_SUCCESS          = 0x00,
    CMD_FAILURE          = 0x01,
    CMD_MSG_ERR          = 0x02,
    CMD_NOT_SUPPORT      = 0x03,
    CMD_IN_OTA           = 0x04,
    CMD_IN_LOG_UPLOADING = 0x05,
    CMD_IN_PATTERN_DOWNLOAD = 0x06
}TBOX_CMD_ACK_RESULT;

void swei_netProtocol_ack_downlink_cmd(uint16_t cmd_id, TBOX_CMD_ACK_RESULT ret, bool clear_id_flag);
#ifdef __cplusplus
}
#endif

#endif
